<div class="content_container">
  <div class="tab_wapper">
    <div class="tab"><img src="/images/edit_pw_tab.gif" alt="修改密码"></img>
    </div>
  </div>
  <div style="padding:1em;">
    <%= error_messages_for :user %>
    <div class="form">
      <% form_tag "/users/update_password/#{session[:user_id]}" do |f| -%>
      <p><label for="old_password">旧密码</label>
      <input name='old_password' id='old_password'  type="password" ></input></p>

      <p><label for="password">密码</label>
      <%= password_field :user,:password %></p>

      <p><label for="password_confirmation">密码确认</label>
      <%= password_field :user,:password_confirmation %></p>
      <p><%= image_submit_tag "/images/save_button.gif",:style=>"border:none;" %></p>
    <% end -%>
      <div class="action_link">
      <%= link_to '取消',back_url,:class=>"action_back" %>
      </div>
    </div>
  </div>

</div>
